cmake_minimum_required(VERSION 2.8.3)
project(auto_charge_control)

find_package(catkin REQUIRED COMPONENTS
  geometry_msgs
  roscpp
  rospy
  cmake_modules
  tf
)

catkin_package(
  CATKIN_DEPENDS
  geometry_msgs
  roscpp
  message_runtime
)

include_directories(
  ${catkin_INCLUDE_DIRS}
)

add_executable(${PROJECT_NAME}_node src/auto_charge_control.cpp src/auto_charge_control_node.cpp)
target_link_libraries(${PROJECT_NAME}_node ${catkin_LIBRARIES})
add_dependencies(${PROJECT_NAME}_node ${catkin_EXPORTED_TARGETS})

install(TARGETS ${PROJECT_NAME}_node  RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})